#include "GroceryAddButton.h"
#include "GroceryListPanel.h"

GroceryAddButton::GroceryAddButton() :
	ActionButton(T("Add"))
{

}

void GroceryAddButton::setPanel(GroceryListPanel* p)
{
	panel = p;
}

void GroceryAddButton::mouseUp(const MouseEvent& e)
{
	state.mouseDown = false;
	panel->addCurrentItem();
	repaint();
}

void GroceryAddButton::paintMore(Graphics& g)
{

}
